package com.xpffly.design.observer.jdk.service;

import java.util.Observable;

/**
 * @Author: 午夜学徒
 * @Date: 2022/4/4 19:17
 * @Description：黄金主题类
 */
public class GoldSubject extends Observable {
    /**
     * 业务处理类
     */
    public void doSomething() {
        System.out.println("黄金市场数据发生改变....");
        super.setChanged();
        super.notifyObservers("黄金");
    }
}
